﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:QrCodeForWin8"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:WinRT="using:Gma.QrCodeNet.Encoding.Windows.WinRT"
    xmlns:UI="using:Microsoft.Advertising.WinRT.UI"
    x:Class="QrCodeForWin8.MainPage"
    mc:Ignorable="d">

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="305*"/>
            <RowDefinition Height="69*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="305*"/>
            <ColumnDefinition Width="368*"/>
        </Grid.ColumnDefinitions>
        <TextBox x:Name="InputTextBox" HorizontalAlignment="Left" Height="103" Margin="83,268,0,0" TextWrapping="Wrap" Text="Hello, World!" VerticalAlignment="Top" Width="416" Grid.Column="1" TextChanged="InputTextBox_TextChanged" FontFamily="Microsoft YaHei UI" FontSize="20" FontWeight="Bold"/>
        <WinRT:QrCodeGeoControl x:Name="QrCodeControl" Margin="20,20,10,10" Text="Hello, Welcome!" LightBrush="#FFFFCFCF" Foreground="{x:Null}" DarkBrush="Black"/>
        <ComboBox x:Name="CodeTypeComboBox" Grid.Column="1" HorizontalAlignment="Left" Margin="201,104,0,0" VerticalAlignment="Top" Width="298" Height="39" SelectedIndex="-1" SelectionChanged="CodeTypeComboBox_SelectionChanged" FontSize="20" FontFamily="Microsoft YaHei UI" FontWeight="Bold">
        </ComboBox>
        <TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="83,112,0,0" TextWrapping="Wrap" Text="二维码类型" VerticalAlignment="Top" Foreground="White" FontSize="20" FontFamily="Microsoft YaHei UI" FontWeight="Bold"/>
        <UI:AdControl ApplicationId="d25517cb-12d4-4699-8bdc-52040c712cab" AdUnitId="10043008" Margin="614,42,10,10" Grid.Row="1" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" HorizontalAlignment="Center" Width="742" Height="90" VerticalAlignment="Center" Grid.ColumnSpan="2"/>

    </Grid>
</Page>
